<?php
use yii\helpers\Url;
// use yii\Web\View;
use app\assets\NewMaterialAsset;
NewMaterialAsset::register($this);
$this->title = '上传素材 -- Sacrebleu DSP';
?>
<div class="col-sm-6">
  <ol class="breadcrumb">
    <li>运营管理</li>
    <li><a href="<?php echo Url::to(['material/index']);?>">素材管理</a></li>
    <li class="active">新增素材组 </li>
  </ol>
</div>
</div>
<div class="row">
  <h3 class="page-title">
    <i class="fa fa-image"></i>
    素材管理
    <small>新增素材</small>
  </h3>
</div>
<div class="panel">
  <div class="panel-heading">
  </div>
  <div class="panel-body">
    <div class="row">
      <div class="col-sm-6 col-sm-offset-3">
        <form class="form-horizontal" id="data-frm" method="POST" action="<?php echo Url::to(['users/new-user-handle']);?>">
          <input class="hidden" type="text" name="id" value="">
          <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
              <label class="col-sm-2 control-label pl0" for="material_name" >
                <em>*</em>
                素材名称：
              </label>
              <div class="col-sm-10">
                <input class="form-control" id="material_name" type="text" name="name" value="" placeholder="素材组名称">
                <div class="help-block text-error" id="material_name_err"></div>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label" for="material_type">
                <em>*</em>
                类型：
              </label>
              <div class="col-sm-10">
                <label class="radio-inline">
                  <input type="radio" name="material_type" value="0" checked> TEXT
                </label>
                <label class="radio-inline">
                  <input type="radio" name="material_type" value="1"> JPG
                </label>
                <label class="radio-inline">
                  <input type="radio" name="material_type" value="2"> GIF
                </label>
                <label class="radio-inline">
                  <input type="radio" name="material_type" value="4"> SWF
                </label>
                <div class="help-block"></div>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label" for="material_size">
                <em>*</em>
                尺寸：
              </label>
              <div class="col-sm-10">
                <input class="form-control" id="material_size" type="text" name="material_size" value="" placeholder="尺寸">
                <div class="help-block text-error" id="material_size_err"></div>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label pl0" for="belong_user">
                <em>*</em>
                所属用户：
              </label>
              <div class="col-sm-10">
                <select class="form-control" id="belong_user" name="belong_user">
                  <option value="0" selected>Advertiser01</option>
                  <option value="2">Advertiser02</option>
                  <option value="1">Advertiser03</option>
                </select>
              </div>
            </div>
          </fieldset>
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <div class="btn-form-group pull-right">
                <button type="submit" class="btn btn-primary" data-loading-text="<i class='fa fa-spinner fa-spin'></i> 数据提交中...">保存</button>
                <a href="<?php echo Url::to(['material/index']); ?>" class="btn btn-default">返回列表</a>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>